Digital Image Processing: Practical Approach by Borko Furht & Esad Akar & Whitney Angelica Andrews
Author:Borko Furht & Esad Akar & Whitney Angelica Andrews
Language: eng
Format: epub
ISBN: 9783319966342
Publisher: Springer International Publishing
With the table established, the next step is to iterate over every character, look up its Huffman code, and pack the bits of the code inside 8-bit bytes. Packing is necessary because the smallest unit of data is the 8-bit byte and if we were to write the Huffman code to our file vector as is without packing, a code that is potentially smaller than 8 bits would get converted in an 8-bit byte (uint8) before being written to the vector, which defeats the purpose of compression. As a result, we need to pack multiple codes into one byte before writing.
To pack a stream of bits, we start with the most significant bit of the byte being written to and record every bit of the code from left to right. Every 8 bits, we write the full byte to the vector and resume writing to a new byte. For the sequence ‘abbcccdddd’, packing is shown in Table 6.4.Table 6.4The bits of the Huffman code are packed together inside bytes
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8317)
Test-Driven Development with Java by Alan Mellor(6879)
Data Augmentation with Python by Duc Haba(6805)
Principles of Data Fabric by Sonia Mezzetta(6540)
Learn Blender Simulations the Right Way by Stephen Pearson(6443)
Microservices with Spring Boot 3 and Spring Cloud by Magnus Larsson(6304)
Hadoop in Practice by Alex Holmes(5970)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5818)
RPA Solution Architect's Handbook by Sachin Sahgal(5704)
Big Data Analysis with Python by Ivan Marin(5440)
The Infinite Retina by Robert Scoble Irena Cronin(5405)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5165)
Pretrain Vision and Large Language Models in Python by Emily Webber(4402)
Infrastructure as Code for Beginners by Russ McKendrick(4174)
Functional Programming in JavaScript by Mantyla Dan(4050)
The Age of Surveillance Capitalism by Shoshana Zuboff(3968)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3886)
Embracing Microservices Design by Ovais Mehboob Ahmed Khan Nabil Siddiqui and Timothy Oleson(3687)
Applied Machine Learning for Healthcare and Life Sciences Using AWS by Ujjwal Ratan(3662)
